package com.etouch.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etouch.security.pojo.dto.SysUserDTO;
import com.etouch.security.pojo.entity.SysUser;
import com.etouch.security.pojo.searchargs.SearchSysUserArgs;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author chenyunchang
 * @since 2020-10-28
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 通过用户名获取用户DTO对象, 包含用户基本信息, 角色 , 权限
     * @param userName
     * @return
     */
    SysUserDTO getUserByUserName(String userName);

    SysUserDTO getUserDetailByArgs(SearchSysUserArgs args);
}
